.class public Lcom/waiqin365/h5/photo/WqPhotoPreview;
.super Lorg/apache/cordova/CordovaPlugin;


# instance fields
.field a:Ljava/util/ArrayList;

.field private b:Lorg/apache/cordova/CallbackContext;

.field private c:Lorg/apache/cordova/WqCordovaActivity;

.field private d:I

.field private e:Ljava/lang/String;

.field private f:Ljava/lang/String;


# direct methods
.method public constructor <init>()V
    .locals 1

    invoke-direct {p0}, Lorg/apache/cordova/CordovaPlugin;-><init>()V

    const/4 v0, 0x0

    iput v0, p0, Lcom/waiqin365/h5/photo/WqPhotoPreview;->d:I

    const-string/jumbo v0, ""

    iput-object v0, p0, Lcom/waiqin365/h5/photo/WqPhotoPreview;->e:Ljava/lang/String;

    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/waiqin365/h5/photo/WqPhotoPreview;->a:Ljava/util/ArrayList;

    return-void
.end method

.method static synthetic a(Lcom/waiqin365/h5/photo/WqPhotoPreview;I)I
    .locals 0

    iput p1, p0, Lcom/waiqin365/h5/photo/WqPhotoPreview;->d:I

    return p1
.end method

.method static synthetic a(Lcom/waiqin365/h5/photo/WqPhotoPreview;)Ljava/lang/String;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/h5/photo/WqPhotoPreview;->f:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic a(Lcom/waiqin365/h5/photo/WqPhotoPreview;Ljava/lang/String;)Ljava/lang/String;
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/h5/photo/WqPhotoPreview;->e:Ljava/lang/String;

    return-object p1
.end method

.method static synthetic b(Lcom/waiqin365/h5/photo/WqPhotoPreview;)Lorg/apache/cordova/WqCordovaActivity;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/h5/photo/WqPhotoPreview;->c:Lorg/apache/cordova/WqCordovaActivity;

    return-object v0
.end method

.method static synthetic c(Lcom/waiqin365/h5/photo/WqPhotoPreview;)I
    .locals 1

    iget v0, p0, Lcom/waiqin365/h5/photo/WqPhotoPreview;->d:I

    return v0
.end method

.method static synthetic d(Lcom/waiqin365/h5/photo/WqPhotoPreview;)Ljava/lang/String;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/h5/photo/WqPhotoPreview;->e:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic e(Lcom/waiqin365/h5/photo/WqPhotoPreview;)Lorg/apache/cordova/CallbackContext;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/h5/photo/WqPhotoPreview;->b:Lorg/apache/cordova/CallbackContext;

    return-object v0
.end method


# virtual methods
.method public execute(Ljava/lang/String;Lorg/apache/cordova/CordovaArgs;Lorg/apache/cordova/CallbackContext;)Z
    .locals 3

    const/4 v2, 0x0

    iget-object v0, p0, Lcom/waiqin365/h5/photo/WqPhotoPreview;->cordova:Lorg/apache/cordova/CordovaInterface;

    invoke-interface {v0}, Lorg/apache/cordova/CordovaInterface;->getActivity()Landroid/app/Activity;

    move-result-object v0

    check-cast v0, Lorg/apache/cordova/WqCordovaActivity;

    iput-object v0, p0, Lcom/waiqin365/h5/photo/WqPhotoPreview;->c:Lorg/apache/cordova/WqCordovaActivity;

    iput-object p3, p0, Lcom/waiqin365/h5/photo/WqPhotoPreview;->b:Lorg/apache/cordova/CallbackContext;

    if-eqz p2, :cond_0

    invoke-virtual {p2, v2}, Lorg/apache/cordova/CordovaArgs;->isNull(I)Z

    move-result v0

    if-eqz v0, :cond_1

    :cond_0
    :goto_0
    return v2

    :cond_1
    invoke-virtual {p2, v2}, Lorg/apache/cordova/CordovaArgs;->getString(I)Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/h5/photo/WqPhotoPreview;->f:Ljava/lang/String;

    iget-object v0, p0, Lcom/waiqin365/h5/photo/WqPhotoPreview;->c:Lorg/apache/cordova/WqCordovaActivity;

    invoke-virtual {v0}, Lorg/apache/cordova/WqCordovaActivity;->getThreadPool()Ljava/util/concurrent/ExecutorService;

    move-result-object v0

    new-instance v1, Lcom/waiqin365/h5/photo/g;

    invoke-direct {v1, p0}, Lcom/waiqin365/h5/photo/g;-><init>(Lcom/waiqin365/h5/photo/WqPhotoPreview;)V

    invoke-interface {v0, v1}, Ljava/util/concurrent/ExecutorService;->execute(Ljava/lang/Runnable;)V

    goto :goto_0
.end method
